<form role="form" name="form" novalidate ng-submit="submit();">
    <div class="form-group">
        <label for="email">Email address</label>
        <input type="email" class="form-control"
               name="email"
               ng-model="user.email"
               required
               placeholder="Enter email">
        <span ng-show="form.email.$invalid " class="help-block">
            Email is required.
        </span>
    </div>
    <div class="form-group">
        <label for="password">Password</label>
        <input type="password" class="form-control"
            name="password"
            ng-model="user.password"
            required
            ng-minlength="4"
            placeholder="Password">
        <span ng-show="form.password.$invalid " class="help-block">
            At least 4 chars
        </span>
    </div>
    
    <button type="submit" class="btn btn-info">Login</button>
</form>